﻿using System.Data;
using ET;
using DAL;

namespace BLL
{
    public class Proposed_BLL
    {
        public static Proposed_DAL cls = new Proposed_DAL();
        #region[Get-Data]
        public DataTable GetDataProposed(string keywords)
        {
            return cls.GetDataProposed(keywords);
        }
        public DataTable GetDataProposedNew()
        {
            return cls.GetDataProposedNew();
        }
        public DataTable GetDataProposedEdit(int id)
        {
            return cls.GetDataProposedEdit(id);
        }
        public DataTable GetDataProposedGridEdit(int id)
        {
            return cls.GetDataProposedGridEdit(id);
        }
        public DataTable GetOrderBuyCode()
        {
            return cls.GetOrderBuyCode();
        }
        public DataTable GetMaterialOrderBuyCode(int id)
        {
            return cls.GetMaterialOrderBuyCode(id);
        }
        public DataTable GetDataProposedFillterActive(int id)
        {
            return Proposed_DAL.GetDataProposedFillterActive(id);
        }
        public DataTable GetDataProposedFillterDate(string DateBegin, string DateEnd)
        {
            return Proposed_DAL.GetDataProposedFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertProposed(Proposed_ET obj)
        {
            return cls.InsertProposed(obj);
        }
        public static bool UpdateProposed(Proposed_ET obj)
        {
            return cls.UpdateProposed(obj);
        }
        public static bool DeleteProposed(int id)
        {
            return cls.DeleteProposed(id);
        }
        #endregion

        #region[Review]
        public static bool ReviewProposed(Proposed_ET obj)
        {
            return cls.ReviewProposed(obj);
        }
        #endregion
    }
}
